steam_is_overlay_activated

语法:

steam_is_overlay_activated();


返回: 布尔值


描述

This function can be used to find out if the user has the Steam Overlay active or not. If the overlay is active and visible to the user the function will return true, and if it is not, then it will return false. An example of what this function can be used for would be for polling the Steam API for the overlay so that you can pause your game while the overlay is being shown.


例如:

if steam_is_overlay_activated()
   {
   global.Pause = true;
   }

The above code will check to see if the Steam overlay is active and if it is it will set the global variable "Pause" to true.